const express = require('express');
const router = express.Router();

router.get('/login', function (req, res, next) {
  let { headers } = req;
  if (!headers.accept || headers.accept.indexOf('text/html') === -1) {
    res.json({
      code: '-304',
      msg: 'replace',
    });
  } else {
    next();
  }
});

module.exports = router;
